package part2;

public class Main {
    public static void main(String[] args) {
        FoldedPhone foldedPhone = new FoldedPhone(new Vivo());
        foldedPhone.open();
        foldedPhone.call();
        foldedPhone.close();
        FoldedPhone foldedPhone1 = new FoldedPhone(new XiaoMi());
        foldedPhone1.open();
        foldedPhone1.call();
        foldedPhone1.close();

        System.out.println("====================");
        System.out.println("增加一个类就非常简单！");
        UpRightPhone upRightPhone = new UpRightPhone(new Vivo());
        upRightPhone.open();
        upRightPhone.call();
        upRightPhone.close();
        UpRightPhone upRightPhone1 = new UpRightPhone(new XiaoMi());
        upRightPhone1.open();
        upRightPhone1.call();
        upRightPhone1.close();
    }
}
